package com.hh.flow.service;

import com.warm.flow.core.domain.entity.FlowNode;
import com.warm.flow.core.domain.entity.FlowSkip;

import java.util.List;

/**
 * @author minliuhua
 * @description: 流程定义service
 * @date: 2023/5/29 13:09
 */
public interface HhDefService {

    /**
     * 查询流程节点列表
     *
     * @param definitionId
     * @return
     */
    List<FlowNode> getNodeList(Long definitionId);

    /**
     * 保存流程结点
     *
     * @param flowNodeList
     * @param definitionId
     */
    void saveNode(List<FlowNode> flowNodeList, Long definitionId);

    /**
     * 保存流程跳转
     *
     * @param skipList
     * @param nodeId
     */
    void saveSkip(List<FlowSkip> skipList, Long nodeId);
}
